package com.saikuo.service.dao;


import com.saikuo.service.model.Order;
import com.saikuo.service.model.OrderDetail;

import java.util.List;
import java.util.Map;

/**
 * Created by shanchangyu on 16/10/18.
 */
public interface IOrderDao {
    Long createOrderInfo(Order order);

    boolean updateOrderInfo(Long orderId, int status);

    boolean completeOrderInfo(Long orderId, int status, int payChannel);

    Order getOrderByOrderId(Long orderId);

    List<Order> getOrdersByUserId(int userId, int orderStatus, int from, int limit);

    int addOrderDetail(Long orderId, List<OrderDetail> orderDetail);

    boolean orderExist(Long orderId);

    String getStoreCodeByOrderId(Long orderId);

    boolean complainOrder(Long orderId, int userId, String phone, String content);

}
